<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    {% include "head.html" ignore missing %}
</head>
<body>
    {% include "nav.html" %}
    <div class="container">
        <h2 class="mt-20">{{film.name}}</h2>
        <div id="wrap">
            {{film.desc_txt | safe}}
        </div>
        {% if film.down_url %}
        <div class="alert alert-dark down-button" role="alert">
            {% if film.thunder_url %}
                <a href="{{film.thunder_url}}">{{film.down_url}}</a>
            {% else %}
                <a href="{{film.down_url}}">{{film.down_url}}</a>
            {% endif %}
        </div>
        {% endif %}
        {% if film.baidu_url%}
        <div class="alert alert-dark down-button">
            <p style="display: inline-block;">百度网盘地址</p>
            <button type="button" id="url" data-clipboard-text="{{film.baidu_url}}" class="btn btn-secondary" data-toggle="tooltip" data-placement="top" title="点击复制内容！">
                {{film.baidu_url}}
            </button>
            <br>
            <p style="margin-top: 20px;display: inline-block;">百度网盘密码</p>
            <button type="button" id="password" data-clipboard-text="{{film.baidu_password}}" class="btn btn-secondary" data-toggle="tooltip" data-placement="top" title="点击复制内容！">
                {{film.baidu_password}}
            </button>
        </div>
        {% endif %}
    </div>
    {% include "footer.html" %}
    {% include "script.html" %}
    <script src="../static/plug/clipboard/clipboard.min.js"></script>
    <script src="/static/js/index.js"></script>
    <script>
        $(function () {
            $('[data-toggle="tooltip"]').tooltip()
            new ClipboardJS('#url')
            new ClipboardJS('#password')
        })
    </script>
</body>
</html>